home *** CD-ROM | disk | FTP | other *** search
- { %filename% -- modeless dialog }
- { Created %date% %time% by AppMaker }
-
- { We recommend that you not modify this module and instead modify }
- { its subclass, %dlogname%. The 'z' prefix on this module marks% %}
- { a module which is likely to be regenerated by AppMaker after you }
- { make changes to the user interface. The modules without the 'z' }
- { prefix will not be regenerated by AppMaker unless you delete them. }
- { Using a separate subclass to override the AppMaker-generated code }
- { lets you regenerate code without losing your hand-coded changes. }
-
- Unit %unitname%;
- Interface
-
- Uses
- TCL,
- AMCL,
- z%AppName%Intf,
- %AppName%Intf;
-
- {----------}
- Implementation
-
- const
- %dlogname%ID% %= %rsrcID%; {resource ID for DLOG template}
-
- {----------}
- Procedure Z%dlogname%.I%dlogname% (aSupervisor: CApplication);
- var
- itsDialog: CDialog;
- enclosure: CView;
- supervisor: CBureaucrat;
- itsMainPane: CPane;
- aGroup: CRadioGroup;
- Begin
- inherited IDirector (aSupervisor);
-
- New (itsDialog);
- itsDialog.IDialog (%rsrcID%, gDesktop, self);
- itsWindow := itsDialog;
-
- enclosure := itsDialog;
- supervisor := self;
- %for each item gen create%
- End; {I%dlogname%}
-
- %for each item gen zMake%
- {----------}
- Procedure Z%dlogname%.CloseWind (theWindow: CWindow);
- Begin
- theWindow.Hide;
- End; {CloseWind}
-
- {----------}
- Procedure Z%dlogname%.DoCommand (theCommand: longint);
- Begin
- case theCommand of
- cmdClose: begin
- CloseWind(itsWindow);
- end;
- otherwise
- inherited DoCommand (theCommand);
- end; {case}
- End; {DoCommand}
-
- End. {%unitname%}